package HP.com.guess.wangyu;

public class Computer extends Part implements ComputerPunch {

    public Computer() {
    }

    public Computer(String name, int score) {
        super(name, score);
    }


    //电脑出拳
    public int computerHand() {
        int ran_num = (int) ((Math.random()) * 3) + 1;
        return ran_num;
    }
}
